﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace ChiDao.Site.Models
{
    public class OrgView
    {
        public Guid ID { get; set; }

        [Description("机构编号")]
        [StringLength(500)]
        public string OrgNo { get; set; }

        [Description("机构名称")]
        [Required]
        [StringLength(20)]
        public string OrgName { get; set; }

        [Description("联系电话")]
        [StringLength(100)]
        public string Telphone { get; set; }

        [Description("传真")]
        [StringLength(100)]
        public string Fax { get; set; }

        [Description("地址")]
        [StringLength(500)]
        public string Address { get; set; }

        [Description("部门描述")]
        [StringLength(1000)]
        public string Description { get; set; }

        [Description("部门备注")]
        [StringLength(1000)]
        public string Remark { get; set; }

        [Description("上级机构ID")]
        public Guid? PID { get; set; }

        [Description("排序号")]
        public int OrderNo { get; set; }

        /// <summary>
        ///     获取或设置 获取或设置是否禁用，逻辑上的删除，非物理删除
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        ///     获取或设置 添加时间
        /// </summary>
        [DataType(DataType.DateTime)]
        public DateTime AddDate { get; set; }
    }
}
